package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户vip身份信息表
 * </p>
 *
 * @author Shane
 * @since 2019-08-22
 */
@TableName("user_vip")
public class UserVip implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 用户id
	 */
	@TableField(value="user_id")
	private Integer userId;

	/**
	 * 身份标识
	 */
	private Integer identity;

	/**
	 * 开始时间
	 */
	@TableField(value="begin_time")
	private LocalDateTime beginTime;

	/**
	 * 结束时间
	 */
	@TableField(value="end_time")
	private LocalDateTime endTime;

	/**
	 * 
	 */
	@TableField(value="create_time")
	private LocalDateTime createTime;

	public UserVip() {
	}

	public UserVip(Integer userId, Integer identity, LocalDateTime beginTime, LocalDateTime endTime) {
		this.userId = userId;
		this.identity = identity;
		this.beginTime = beginTime;
		this.endTime = endTime;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getIdentity() {
		return identity;
	}

	public void setIdentity(Integer identity) {
		this.identity = identity;
	}

	public LocalDateTime getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(LocalDateTime beginTime) {
		this.beginTime = beginTime;
	}

	public LocalDateTime getEndTime() {
		return endTime;
	}

	public void setEndTime(LocalDateTime endTime) {
		this.endTime = endTime;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

}
